////
////  AliyunVideoViewControllerHaveUI.swift
////  funcode
////
////  Created by Wan Jiading on 2017/7/13.
////  Copyright © 2017年 WanJiading. All rights reserved.
////	无法创建出来，不知原因
//
//import UIKit
//import AliyunVodPlayerViewSDK
//import AliyunVodPlayerSDK
//
//private let AppID = "LTAIbIoarj4IP0ba"
//private let AppSecret = "RGRp5VjwTpRAAS05tx9JLz0Bvg4sin"
//private let ApiKey = "m7ynwar5yi4m6f2lwpwytpeaefamj9nw4a9kgd66e47azwgcl4vhmd13swjoavo9"
//
//class AliyunVideoHaveUIViewController: UIViewController, AliyunVodPlayerViewDelegate {
//	public func onResume(_ currentPlayTime: TimeInterval) {
//		
//	}
//
//
//	var playerView: AliyunVodPlayerView?
//	
//	let vid = "f5af38cd23d94d449ffef2743b67de11"
//	let playAuth = "eyJTZWN1cml0eVRva2VuIjoiQ0FJU3VBSjFxNkZ0NUIyeWZTaklvNmppTDh6RHU0eFAzS3VtY1dYZzBta0JYTDVobG9MT3NEejJJSHBLZVhkdUFlQVhzL28wbW1oWjcvWVlsck1xR3NFWkZSZWNOSlFndGN3TXJWNytKcExGc3QycDZyOEpqc1VJazZvTnQxMnBzdlhKYXNEVkVmbkFHSjcwR1VpbSt3WjN4YnpsRHh2QU8zV3VMWnlPajdOK2M5MFRSWFBXUkRGYUJkQlFWRTBBenNvR0xpbnBNZis4UHdURG4zYlFiaTV0cGhFdXNXZDIrSVc1ek1yK2pCL0Nsdy9XeCtRUHRwenRBWlcxRmI0T1dxMXlTTkNveHVkN1c3UGMyU3BMa1hodytieHhrYlpQOUVXczNMamZJU0VJczByZGJiV0VyNFV4ZFZVbFB2VmxJY01lOHFpZ3o4OGZrL2ZJaW9INnh5eEtPZXhvU0NuRlRPaWl1cENlUnI3M2FJNXBKT3VsWUNxVmc0bmZiSU9KbWdjbGNHOGRDZ1JHUU5Nb01VUnNFaVlyVGp6SzJ3RlFQcVFob0d3YWdBRnB3ODFEeXMwY0ZYOVpWR1ZIZnNQbDk4R1RsVE9jbWdDSW9vSkVWK0k0YzNoMzZPaS80L09PcDhXSlRHeUEvdVAzdGpLSHY5RU9pbFBCeG1IYUliazRwMGh2MnRpUGtOUU96Rm1QS1RHeFJjTGsvMjExaHZRckljdVk3NGdvNW5aSHZRS1hXdWlRbHhCVlMwR2NtQ3J2Tnhrd1QzaHdBVFBRYmMzUmhXUjFSQT09IiwiQXV0aEluZm8iOiJ7XCJFeHBpcmVUaW1lXCI6XCIyMDE3LTA3LTE3VDAzOjI2OjMyWlwiLFwiTWVkaWFJZFwiOlwiZjVhZjM4Y2QyM2Q5NGQ0NDlmZmVmMjc0M2I2N2RlMTFcIixcIlNpZ25hdHVyZVwiOlwidWR3enNSOE8zV0FjMHJSdjFNdjlGMHpNS1hJPVwifSIsIlZpZGVvTWV0YSI6eyJTdGF0dXMiOiJOb3JtYWwiLCJWaWRlb0lkIjoiZjVhZjM4Y2QyM2Q5NGQ0NDlmZmVmMjc0M2I2N2RlMTEiLCJUaXRsZSI6IklNR18wMzMxIiwiQ292ZXJVUkwiOiJodHRwOi8vdmlkZW8uaXZ5ZGFkLmNvbS9zbmFwc2hvdC9mNWFmMzhjZDIzZDk0ZDQ0OWZmZWYyNzQzYjY3ZGUxMTAwMDAxLmpwZyIsIkR1cmF0aW9uIjoxMS4wfSwiQWNjZXNzS2V5SWQiOiJTVFMuQmtXZHZ3VlNua2lNc0NRNmlUUDFNeUdlUiIsIlBsYXlEb21haW4iOiJ2aWRlby5pdnlkYWQuY29tIiwiQWNjZXNzS2V5U2VjcmV0IjoiN3k5Nlpza2d1TkI5RHNycFdId1lFTGV0eGYxa3piM28zS3daQlBtRWdBNFgiLCJSZWdpb24iOiJjbi1zaGFuZ2hhaSIsIkN1c3RvbWVySWQiOjE5NjQ4MzAxNzgzMDM0NTd9"
//	
//	override func loadView() {
//		super.loadView()
//		
//		setupPlayerView()
//	}
//	
//    override func viewDidLoad() {
//        super.viewDidLoad()
//
//		self.view.backgroundColor = UIColor.white
//		
////		setupPlayerView()
//		
////		play()
//    }
//	
//	override func viewDidAppear(_ animated: Bool) {
//		super.viewDidAppear(animated)
//		
//		setupPlayerView()
//		
//		DebugLog(playerView!)
//	}
//	
//	override func viewDidLayoutSubviews() {
//		super.viewDidLayoutSubviews()
//		
//		
//		
//		DebugLog(playerView!)
//	}
//	
//	func setupPlayerView() {
//		
//		playerView = AliyunVodPlayerView()
//		playerView!.frame = CGRect(x: 0, y: 60, width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.width * 9 / 16)
//		playerView!.delegate = self
//		self.view.addSubview(playerView!)
//		
//		DebugLog(playerView!)
//	}
//	
//	func play(_ vid: String, _ playAuth: String) {
//		
////		playerView!.initAccessKeyAndApiKey(AppID, andAppSecret: AppSecret, andApiKey: ApiKey, playAuth: playAuth, play: .vidAndAK)
////		playerView!.initAccessKeyAndApiKey("", "": AppSecret, "": ApiKey, playAuth: playAuth, play: .playauth)
//		playerView!.initAccessKeyAndApiKey(nil, andAppSecret: nil, andApiKey: nil, playAuth: playAuth, play: .playauth)
//		playerView!.setAutoPlay(true)
//		playerView!.play(withVid: vid)
//		
//	}
//	
//	func play() {
//		
//		play(vid, playAuth)
//	}
//
//	
//	// AliyunVodPlayerViewDelegate
//	
//	func onStop(_ currentPlayTime: TimeInterval) {
//		DebugLogFunc()
//	}
//	
//	func onBackViewClick() {
//		DebugLogFunc()
//	}
//	
//	func onPause(_ currentPlayTime: TimeInterval) {
//		DebugLogFunc()
//	}
//	
//	
//	
//}
